/*
 * @Author: 依旧 1127740739@qq.com
 * @Date: 2025-04-19 02:09:12
 * @LastEditors: 依旧 1127740739@qq.com
 * @LastEditTime: 2025-04-19 02:12:38
 * @FilePath: \app-case\src\utils\uuid.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
export function generateUUID() {
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) {
    var r = (Math.random() * 16) | 0;
    var v = c === "x" ? r : (r & 0x3) | 0x8;
    return v.toString(16).toUpperCase();
  });
}
